Intellij IDEA maven : can't resolve symbol "backtype"
NickName:Li haonan Ask DateTime:2016-12-01T09:45:03

Intellij IDEA maven : can't resolve symbol "backtype"

I'm writing a Wordcount on storm with input from kafka. While I'm doing project on IDEA, I found maven failed to download every class I needed(actually most of the classes). the pom.xml is

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>stormkafka_wordcount</groupId>
    <artifactId>stormkafka_wordcount</artifactId>
    <version>1.0-SNAPSHOT</version>
    <properties>
        <project.building.sourceEncoding>UTF-8</project.building.sourceEncoding>
        <java.version>1.7</java.version>
        <kafka.version>0.10.1.0</kafka.version>
        <storm.version>1.0.2</storm.version>
        <scala.version>2.11</scala.version>
        <hadoop.version>2.7.3</hadoop.version>
        <hbase.version>1.2.3</hbase.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.apache.storm</groupId>
            <artifactId>storm</artifactId>
            <version>${storm.version}</version>
        </dependency>

        <dependency>
        <groupId>org.apache.storm</groupId>
        <artifactId>storm-core</artifactId>
        <version>${storm.version}</version>
        <scope>provided</scope>
        </dependency>

    <dependency>
        <groupId>org.apache.kafka</groupId>
        <artifactId>kafka_${scala.version}</artifactId>
        <version>0.10.1.0</version>
        <exclusions>
            <exclusion>
                <groupId>org.apache.zookeeper</groupId>
                <artifactId>zookeeper</artifactId>
            </exclusion>
            <exclusion>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

    <dependency>
        <groupId>org.apache.storm</groupId>
        <artifactId>storm-kafka</artifactId>
        <version>${storm.version}</version>
    </dependency>
    </dependencies>
</project>

Everything should be downloaded successfully with no error in this pom.xml. While in my java.class, it still say backtype not found, storm not found.

import storm.kafka.StringScheme;
import storm.kafka.ZkHosts;
import backtype.storm.Config;
import backtype.storm.LocalCluster;
import backtype.storm.StormSubmitter;

I do not use Virtual Machine and everything is installed directly in my OS X Yosemite 10.10.5. I have ran Hadoop before using IDEA. Everything is fine. So the maven should be installed properly I thought.

Thank you!

Copyright Notice:Content Author:「Li haonan」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40901294/intellij-idea-maven-cant-resolve-symbol-backtype

More about “Intellij IDEA maven : can't resolve symbol "backtype"” related questions

IntelliJ IDEA can not resolve maven project

My IntelliJ IDEA stuck in "Reading .../pom.xml" I changed my hosts file, added 127.0.0.1 localhost, couldn't work I deleted IntelliJ IDEA config directory, reinstalled IntelliJ IDEA , couldn't wo...

Show Detail

Debugging Maven in IntelliJ IDEA

I recently switched from Eclipse to IntelliJ IDEA (Community edition) and the switch went great. Anyway, I'm facing only one issue. For my work I have to work with Maven, which I don't really mind...

Show Detail

IntelliJ IDEA and Maven in Windows

There is a project that definitely uses Maven. In IntelliJ IDEA in Windows, when the project is opened, there are such errors in the Maven Projects area as Unresolved plugin: org.apache.maven.plugins:

Show Detail

maven quickstart in intellij idea

There is a section &quot;maven in 5 minutes&quot; on the apache maven website. The following script is written in it. If you execute this script in cmd, then the project is created well. mvn arche...

Show Detail

Intellij IDEA - Maven not working

I cannot see the list of maven archetypes ("Loading archetype list...") or import an existing maven project in Intellij IDEA 2016.3.4. I tried several things: giving more memory to maven JVM clear...

Show Detail

Has IntelliJ IDEA downloaded the Maven automatically?

My question is a little different from Setup Maven for IntelliJ 13. My IntelliJ IDEA version is 14.0.3, and I didn't download any Maven in my computer before. I can create Maven project well, but ...

Show Detail

Having Maven Plugins in IntelliJ IDEA without Maven Installation in Computer

I just started to use Maven and IntelliJ IDEA. I imported a project into IntelliJ IDEA which requires Maven. I didn't install Maven to my computer but I have 2 plugins in IntelliJ IDEA named as &quot;

Show Detail

Maven, IntelliJ Idea and Android Sources

I am using combination of Maven and IntelliJ Idea. Although javadoc and sources are shown using Android Module in Idea, I can not see any of them using Android maven. Any help, how to show sour...

Show Detail

How to configure new Maven project in IntelliJ IDEA?

I have a repetitive problem in IntelliJ IDEA. It irritates me so much, so I need to find a repeatable solution. The issue is when I create a project in IntelliJ IDEA and want to convert it to Maven,

Show Detail

Why Intellij IDEA skips Maven test

I use IntelliJ IDEA version 13 on MacOS. I have a maven project, the project is stored in Git. Everything worked well. Yesterday my Macbook crashed, then I reinstalled MacOS as well as IntelliJ ID...

Show Detail